import request from '@/utils/request'

// 查询职业诊断标准职业病列表
export function listBaseoccupationaldiseasecriterion(query) {
  return request({
    url: '/basic/baseoccupationaldiseasecriterion/list',
    method: 'get',
    params: query
  })
}

// 查询职业诊断标准职业病详细
export function getBaseoccupationaldiseasecriterion(id) {
  return request({
    url: '/basic/baseoccupationaldiseasecriterion/' + id,
    method: 'get'
  })
}

// 新增职业诊断标准职业病
export function addBaseoccupationaldiseasecriterion(data) {
  return request({
    url: '/basic/baseoccupationaldiseasecriterion',
    method: 'post',
    data: data
  })
}

// 修改职业诊断标准职业病
export function updateBaseoccupationaldiseasecriterion(data) {
  return request({
    url: '/basic/baseoccupationaldiseasecriterion',
    method: 'put',
    data: data
  })
}

// 删除职业诊断标准职业病
export function delBaseoccupationaldiseasecriterion(id) {
  return request({
    url: '/basic/baseoccupationaldiseasecriterion/' + id,
    method: 'delete'
  })
}
